<template>
  <div class="category-header">
    <i class="iconfont bee-back" @click="goBack"></i>
    <div class="search" @click="jump">
      <i class="iconfont bee-sousuo"></i>
      <span class="search-text">全场1元起售</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CategoryHeader',
  data() {
    return {}
  },
  methods: {
    goBack() {
      this.$router.go(-1)
    },
    jump() {
      this.$router.push({ path: '/list' })
    }
  }
}
</script>

<style lang="less" scoped>
.category-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: 50px;
  line-height: 50px;
  padding: 0 15px;
  border-bottom: 1px solid #999;
  background-color: #fff;
  .bee-back {
    font-size: 0.64rem;
  }
  .search {
    display: flex;
    height: 30px;
    line-height: 30px;
    width: 275px;
    margin-left: 20px;
    padding: 0 15px;
    background: #f7f7f7;
    border-radius: 20px;
    > .bee-sousuo {
      color: grey;
      font-size: 18px;
    }
    > .search-text {
      margin-left: 15px;
      color: #666;
    }
  }
}
</style>
